package com.gljx.web.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gljx.web.Entity.JournalEntry.StudentDetail;
import com.gljx.web.dao.StudentDetailMapper;
import com.gljx.web.service.StudentDetailService;

@Service
@Transactional
public class StudentDetailServiceImpl implements StudentDetailService{

	@Autowired
	private StudentDetailMapper studentDetailMapper;
	
	@Override
	public List<StudentDetail> queryStudentByTime(String companyId,String beginTime,String endTime) {
		// TODO Auto-generated method stub
		Map<String, String> map = new HashMap<>();
		map.put("beginTime", beginTime);
		map.put("endTime", endTime);
		map.put("companyId", companyId);
		return studentDetailMapper.selectStudentByTime(map);
	}

	@Override
	public List<StudentDetail> queryTrainChargeByStudentId(String studentId) {
		// TODO Auto-generated method stub
		return studentDetailMapper.selectTrainChargeByStudentId(studentId);
	}

	@Override
	public StudentDetail queryOtherPayDemandByStudentId(String studentId) {
		// TODO Auto-generated method stub
		return studentDetailMapper.selectOtherPayDemandByStudentId(studentId);
	}

	@Override
	public StudentDetail queryTurnexamCostByStudentId(String studentId) {
		// TODO Auto-generated method stub
		return studentDetailMapper.selectTurnexamCostByStudentId(studentId);
	}

	@Override
	public StudentDetail queryExitClazzByStudentId(String studentId) {
		// TODO Auto-generated method stub
		return studentDetailMapper.selectExitClazzByStudentId(studentId);
	}

	@Override
	public StudentDetail queryStudentDataByFid(String studentId) {
		// TODO Auto-generated method stub
		return studentDetailMapper.selectStudentDataByFid(studentId);
	}

}
